@echo off
set CLASSPATH=.;lib\javax.persistence-api-2.2.jar;lib\lombok-1.18.26.jar;lib\validation-api-2.0.1.Final.jar;lib\hibernate-validator-6.2.0.Final.jar;lib\jakarta.el-3.0.3.jar;lib\classmate-1.5.1.jar;lib\jboss-logging-3.4.1.Final.jar;target\classes

echo Compiling entity classes...
cd src\main\java
javac -encoding UTF-8 -d ..\..\..\target\classes com\example\movie_ticket\entity\*.java com\example\movie_ticket\*.java
if %errorlevel% equ 0 (
  echo Compilation successful!
) else (
  echo Compilation failed, please check error messages.
)

cd ..\..\..

pause 